package Algorithm;

public class ArrayTest_03 {
    public static int[] copyOf(int[] array){
        int[] copy=new int[array.length];
        for(int i=0;i< array.length;i++){
            copy[i]=array[i];
        }
        return copy;
    }
    public static void main(String[] args) {
        int[] array=new int[]{1,2,34,5,6,7,8,9};
        for(int element:copyOf(array)){
            System.out.print(element+" ");
        }
    }
}
